package durst.data;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="Grandchild")
public class Grandchild extends Object {
	@DatabaseField(generatedId = true)
	private int id;
	
	@DatabaseField(foreign = true, columnName="parent_id") 
	private Child parent;

	public Grandchild() {}
	
	public void setParent(Child parent) {
		this.parent = parent;
	}

	public Child getParent() {
		return parent;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	} 
}
